package donnees;
import java.util.ArrayList;
import java.util.List;


public class Village {
	private ArrayList<Villageois> listVillageois;
	private int or;
	private int nourriture;
	
	public Village() {
		this.listVillageois = new ArrayList<Villageois>();
		for(int i = 1; i < 20;i++){
			listVillageois.add(new Villageois());
		}
	}
	
	public int ret_cap_or(){
		int cap_or = 0;
		for (Villageois villageois : listVillageois) {
			cap_or = cap_or + villageois.getCapacite_or();
		}
		return cap_or;
	}
	
	public int ret_cap_nourriture(){
		int nourriture = 0;
		for (Villageois villageois : listVillageois) {
			nourriture = nourriture + villageois.getCapacite_or();
		}
		return nourriture;
	}
	

	public int getOr() {
		return or;
	}

	public void setOr(int or) {
		this.or = or;
	}

	public int getNourriture() {
		return nourriture;
	}

	public void setNourriture(int nourriture) {
		this.nourriture = nourriture;
	}

	public ArrayList<Villageois> getListVillageois() {
		return listVillageois;
	}
	
	
	
	
}
